package org.osiris.persistence.controllers;

import java.util.List;

import javax.persistence.EntityManager;

import org.osiris.persistence.Riesgo;
import org.osiris.persistence.controllers.exceptions.NonexistentEntityException;

public interface RiesgoInterface {

	public abstract EntityManager getEntityManager();

	public abstract void create(Riesgo riesgo);

	public abstract void edit(Riesgo riesgo) throws NonexistentEntityException,
			Exception;

	public abstract void destroy(Long id) throws NonexistentEntityException;

	public abstract List<Riesgo> findRiesgoEntities();

	public abstract List<Riesgo> findRiesgoEntities(int maxResults,
			int firstResult);

	public abstract Riesgo findRiesgo(Long id);

	public abstract int getRiesgoCount();

}